# xcat Makefile for the man package.
#
# Copyright (C) 1994, 1995, Graeme Wilford.
#
# You may distribute under the terms of the GNU General Public
# License as specified in the COPYING file that comes with this
# distribution.
#
# Sat Oct 29 13:09:31 GMT 1994  Wilf. (G.Wilford@ee.surrey.ac.uk) 

srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@

include ../include/Defines

.PHONY:	$(DEFAULT_TARGETS)

override CPPFLAGS := $(DEFS) -I../include -I$(top_srcdir) -I- $(CPPFLAGS)

# You may need to modify these options if you have lex instead of flex
# and you want to play with xcat.l
FLEXOPTS = -B8 -Cem
LEX := $(LEX) $(FLEXOPTS)
LDLIBS = @LEXLIB@

all: xcat

xcat: ../lib/libman.a

../lib/libman.a: 
	$(MAKE) -C ../lib
	
# The standard targets
install uninstall:

mostlyclean clean:
	rm -f xcat *.o core *~

distclean: xcat.c clean
	rm -f Makefile

realclean: distclean
	rm -f xcat.c tags

TAGS:
	$(MKTAGS) $(srcdir)/xcat.[cl]
